<%@page import="org.blog.logic.BlogLogic"%>
<%@page import="org.blog.beans.Blog"%>
<%@page import="java.util.ArrayList"%>
<%@page import="org.blog.controller.UserController"%>
<%@ page errorPage="../jsp/exceptionHandler.jsp" %>


    
    	<br/>Moje blogi:<br>
    	<ul>
		<% ArrayList<Blog> blogs = (ArrayList<Blog>)BlogLogic.getInstance().getBlogs(UserController.getUser(session)); 
			
			for(Blog b : blogs) {
		%>
			<li><a href = "BlogServlet?do=view&id=<%=b.getId()%>"><%= b.getName()
			+"("+b.getEntries().size()+")"%></a></li>
		<% 	} %>
		</ul>		
	